<template>
    <view class="content">
        <view class="item" @click="openPage(`/pages/enter-buy/take-list`, 1)">
            <image src="../../static/image/img_15.png" class="img-15"></image>
            <view>采购收货管理</view>
            <view class="see">进入查看</view>
        </view>
        <view class="item" @click="openPage(`/pages/sale-return/sale-list`, 1)">
            <image src="../../static/image/img_16.png" class="img-15"></image>
            <view>销退收货管理</view>
            <view class="see">进入查看</view>
        </view>
        <view class="item" @click="openPage(`/pages/enter-buy/take-check-list`, 2)">
            <image src="../../static/image/img_17.png" class="img-15"></image>
            <view>采购验收管理</view>
            <view class="see">进入查看</view>
        </view>
        <view class="item" @click="openPage(`/pages/sale-return/sale-check-list`, 2)">
            <image src="../../static/image/img_18.png" class="img-15"></image>
            <view>销退验收管理</view>
            <view class="see">进入查看</view>
        </view>
        <view class="item" @click="openPage(`/pages/enter-buy/take-check-list?number=2`, 2)">
            <image src="../../static/image/img_19.png" class="img-15"></image>
            <view>二次验收管理</view>
            <view class="see">进入查看</view>
        </view>
        <view class="item" @click="openPage(`/pages/enter-record/enter-record`, 3)">
            <image src="../../static/image/img_20.png" class="img-15"></image>
            <view>入库记录</view>
            <view class="see">进入查看</view>
        </view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                
            };
        },
        onLoad() {
            
        },
        methods: {
            openPage(url, num) {
                this.$ajax('index/getRole', {
                    userToken: this.$getSync('userToken'),
                    type: num,//1-采购收货、销退收货 2-采购验收、销退验收、二次验收 3-入库记录 4-待领取 /出库凭证 5-库区管理 6-货位管理 7-托盘管理 8-盘点计划 9-盘点记录 10-养护计划 11-养护记录 12-养护报告 13-调拨管理 14-出库复核 15-运输 16-退货管理
                }).then(ret => {
                	if (ret.status == 0) {
                        this.$gTo(url)
                	} else {
                		this.$toast(ret.message);
                	}
                });
            },
        }
    };
</script>

<style lang="scss">
    page{
        background-color: #fff;
    }
    .content{
        padding: 30rpx;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
    }
    .item{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 332rpx;
        height: 290rpx;
        background-color: #f6f6f6;
        border-radius: 20rpx;
        margin-right: 25rpx;
        margin-bottom: 25rpx;
        font-size: 32upx;
        font-weight: bold;
    }
    .item:nth-child(2n) {
        margin-right: 0;
    }
    .img-15{
        width: 120rpx;
        height: 115rpx;
        margin-bottom: 10rpx;
    }
    .see{
        font-size: 26upx;
        font-weight: normal;
        color: #b6b6b6;
        padding-top: 10rpx;
    }

</style>
